using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SS.Ynote.Classic.AutoCompletion
{
    public class PHP : IAutoCompleteMenu
    {
        string[] snippets = { "if(^)\n{\n;\n}", "if(^)\n{\n;\n}\nelse\n{\n;\n}", "for(^;;)\n{\n;\n}","foreach(^)\n{\n;\n}", "while(^)\n{\n;\n}", "do${\n^;\n}while();", "switch(^)\n{\ncase : break;\n}" };
        string[] declarationSnippets = { 
               "class ^\n{\n}", "function ^()\n{\n;\n}",
               };
        public string Name
        {
            get { return "PHP"; }
        }

        public string[] Keywords
        {
            get { return System.IO.File.ReadAllLines(System.Windows.Forms.Application.StartupPath + @"\Configurations\phpkeywords.src"); }
        }


        public string[] Snippets
        {
            get { return snippets; ; }
        }

        public string[] DeclarationSnippets
        {
            get { return declarationSnippets; }
        }

        public string[] Namespaces
        {
            get { return null; }
        }
    }
}
